import time


# 将当前时间转换为"YYYY-MM-DD HH:MM:SS"格式的字符串
formatted_time1 = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())

time.sleep(1)
# 将当前时间转换为"YYYY-MM-DD HH:MM:SS"格式的字符串
formatted_time2 = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))

print(formatted_time1)
print(formatted_time2)

current_utc_time = time.gmtime(time.time())
current_utc_time = time.strftime("%Y-%m-%d %H:%M:%S", current_utc_time)

# 打印UTC时间
print(current_utc_time)